{% extends 'base.html' %}
{% from 'bootstrap/pagination.html' import render_pagination %}
{% block body %}
    <main class="container">
        {% for comment,post in data %}
            <div class="container">
            <h4>评论内容：</h4>
            <h5>{{ comment.body }}<a class="btn" type="button" href="{{ url_for('admin.delete_comment', comment_id=comment.id) }}">删除</a> </h5>

            <div>
                <small><a href="{{ url_for('blog.show_post',post_id=post.id) }}">{{ post.title }}</a></small>
                <p>{{ post.body[0:100]|striptags }}</p>
            </div>
            </div>
        {% endfor %}
        <div class="page-footer">
        {{ render_pagination(pagination) }}
        </div>
    </main>
{% endblock %}